obj-m += hello.o

KDIR := /lib/modules/$(shell uname -r)/build

#ifneq (${KERNELRELEASE},)
#ccflags-y := -DBUILD_VERSION="\"$(shell cd $(PWD) && ./version.sh)\""
#endif

all:
	@./gen_version.sh
	$(MAKE) -C $(KDIR) M=$(CURDIR) modules

arm64:
	@echo "[cross compile...]"
	@./gen_version.sh
	$(MAKE) -C $(KDIR) M=$(CURDIR) modules

clean:
	$(MAKE) -C $(KDIR) M=$(CURDIR) clean
